-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix non-root hosts failing on resolving DNS #2269
base: master
Are you sure you want to change the base?
Conversation
0b754dc
to
6cca6f1
Compare
Thanks for looking into this.
|
6cca6f1
to
a267609
Compare
Fixed |
a267609
to
ed7d971
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments, I'm not sure this actually fixes your issue?
ed7d971
to
c7dae61
Compare
gentle bump - reminding that ATM btcd@master is broken with providers like quicknode |
Pull Request Test Coverage Report for Build 11741038287Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should clean this up a bit more and add some basic tests.
Here's my proposal as a diff (feel free to just use in your commit, no attribution required):
proposal.diff.txt
A fix for a bug introduced by btcsuite#2168 Previously, config.Host worked in the following way: 1. Documented as supporting ip addresses only 2. In fact supported "host/path" syntax 3. Did not support "scheme" prefixes, i.e. https:// Not sure this is the desired approach, probably the best thing would have been to extend config to contain "Scheme" and "Path" fields as well. However, this was the way it worked. 1. Now Host can contain scheme prefixes "unix://..." 2. Host can no longer contain ".../path" This PR solves this behavior while maintaining support of the "unix://" flow as well. For some reason, "scheme" is named "network" in btcsuite#2168 - I did not change that. Also remove disambiguation in "network:address:port", where it parsed "myhost:8888" as network:address instead address:port.
c7dae61
to
47faac8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 🎉
Thanks for the review, still pending approval from another reviewer: @Crypt-iQ |
@guggero - just making sure we are really waiting for an additional reviewer here |
A fix for a bug introduced by #2168
Previously, config.Host worked in the following way:
Not sure this is the desired approach, probably the best thing would have been to extend config to contain "Scheme" and "Path" fields as well.
However, this was the way it worked.
This PR solves this behavior while maintaining support of the "unix://" flow as well.
For some reason, "scheme" is named "network" in #2168 - I did not change that.
Also, remove disambiguation in "network:address:port", where it parsed "myhost:8888" as network:address instead address:port.
Also see: #2253